
<script type="text/javascript" charset="utf-8">

		var computerroom_id;
		var rackspace_id;
		var hardware_manufacturer;
		var hardware_name;
		var hardwarestatus_id;
		var department_id;
		var opersgroup_id;
		var opersgroupproject_id;
		var applicationtype_id;
		var switch_id1;
		var switch_id2;
		var switch_id3;
		var switch_id4;
		var switch_id5;
		var os_id;
		$(function(){
			
			computerroom_id = $('#computerroom_id').combobox({
				url:'/idcpost/computerroominfo',
				valueField:'id',
				textField:'cr_name',
				editable:false,
				panelHeight:'150',
				required:true,
				onSelect:function(record){
					rackspace_id.combobox({
						url:'/idcpost/rackspaceinfo?id='+record.id,
						valueField:'id',
						textField:'rackspace_name',
						editable:false,
						panelHeight:'150',
						required:true,
					}).combobox('clear');
					
					switch_id1.combobox({
						url:'/devicespost/switchinfo?id='+record.id,
						valueField:'id',
						textField:'switch_aliasname',
						editable:false,
						panelHeight:'150',
						//required:true
					}).combobox('clear');
					
					switch_id2.combobox({
						url:'/devicespost/switchinfo?id='+record.id,
						valueField:'id',
						textField:'switch_aliasname',
						editable:false,
						panelHeight:'150',
						//required:true
					}).combobox('clear');
					
					switch_id3.combobox({
						url:'/devicespost/switchinfo?id='+record.id,
						valueField:'id',
						textField:'switch_aliasname',
						editable:false,
						panelHeight:'150',
						//required:true
					}).combobox('clear');
					
					switch_id4.combobox({
						url:'/devicespost/switchinfo?id='+record.id,
						valueField:'id',
						textField:'switch_aliasname',
						editable:false,
						panelHeight:'150',
						//required:true
					}).combobox('clear');
					
					switch_id5.combobox({
						url:'/devicespost/switchinfo?id='+record.id,
						valueField:'id',
						textField:'switch_aliasname',
						editable:false,
						panelHeight:'150',
						//required:true
					}).combobox('clear');
				}

			});

			rackspace_id = $('#rackspace_id').combobox({
				valueField:'id',
				textField:'rackspace_name',
				editable:false,
				required:true,
			});
			
			//交换机
			switch_id1 = $('#switch_id1').combobox({
				valueField:'id',
				textField:'switch_aliasname',
				editable:false,
				//required:true,
			});
			switch_id2 = $('#switch_id2').combobox({
				valueField:'id',
				textField:'switch_aliasname',
				editable:false,
				//required:true,
			});
			switch_id3 = $('#switch_id3').combobox({
				valueField:'id',
				textField:'switch_aliasname',
				editable:false,
				//required:true,
			});
			switch_id4 = $('#switch_id4').combobox({
				valueField:'id',
				textField:'switch_aliasname',
				editable:false,
				//required:true,
			});
			switch_id5 = $('#switch_id5').combobox({
				valueField:'id',
				textField:'switch_aliasname',
				editable:false,
				//required:true,
			});
			
			hardware_manufacturer = $('#hardware_manufacturer').combobox({
				url:'/devicespost/hardwaremanufacturerinfo',
				valueField:'id',
				textField:'hardwaremanufacturer_name',
				editable:false,
				panelHeight:'150',
				required:true,
				onSelect:function(record){
					hardware_name.combobox({
						url:'/devicespost/hardwareinfo?id='+record.id,
						valueField:'id',
						textField:'hardware_name',
						editable:false,
						panelHeight:'150',
						required:true
					}).combobox('clear');
					//rackspace_id.combobox().combobox('clear');
				}
			});

			hardware_name = $('#hardware_name').combobox({
				valueField:'id',
				textField:'hardware_name',
				editable:false,
				required:true,
			});
			
			//状态信息
			hardwarestatus_id = $('#hardwarestatus_id').combobox({
				url:'/devicespost/hardwarestatusinfo',
				valueField:'id',
				textField:'hardwarestatus_name',
				editable:false,
				required:true,
				panelHeight:'150'      

			});
			
			department_id = $('#department_id').combobox({
				url:'/operationpost/departmentinfo',
				valueField:'id',
				textField:'department_name',
				editable:false,
				required:false,
				panelHeight:'150',
				onSelect:function(record){
					opersgroupproject_id.combobox('clear');
					applicationtype_id.combobox().combobox('clear');
					opersgroup_id.combobox({
						url:'/operationpost/opersgroupinfo?id='+record.id,
						valueField:'id',
						textField:'opersgroup_name',
						editable:false,
						panelHeight:'150',
						required:false,
						onSelect:function(opersgroup_record){
							opersgroupproject_id.combobox('clear');
							applicationtype_id.combobox().combobox('clear');
							opersgroupproject_id.combobox({
								url:'/operationpost/opersgroupprojectinfo?id='+opersgroup_record.id,
								valueField:'id',
								textField:'ogproject_name',
								editable:false,
								panelHeight:'150',
								required:false,
								onSelect:function(record){
									applicationtype_id.combobox({
										url:'/operationpost/applicationtypeinfo?id='+record.id,
										valueField:'id',
										textField:'applicationtype_name',
										editable:false,
										panelHeight:'150',
										required:false
									}).combobox('clear');
								}
							}).combobox('clear');	
						}
						
					}).combobox('clear');
				}
			}).combobox('clear');
			
			opersgroupproject_id = $('#opersgroupproject_id').combobox({
				valueField:'id',
				textField:'ogproject_name',
				editable:false,
				required:false,
			});
			opersgroup_id = $('#opersgroup_id').combobox({
				valueField:'id',
				textField:'opersgroup_name',
				editable:false,
				required:false,
			});
			
			applicationtype_id = $('#applicationtype_id').combobox({
				valueField:'id',
				textField:'applicationtype_name',
				editable:false,
				required:false,
			});
						
			//保修状态，过保就隐藏过保日期
			$('#hardwarewarranty_id').combobox({
				url:'/devicespost/hardwarewarrantyinfo',
				valueField: 'id',
				textField: 'hardwarewarranty_name',
				required: true,
				editable:false,
				panelHeight:100				
			});
			
			//网卡类型
			$('#ethernet_type1').combobox({
				valueField: 'id',
				textField: 'value',
				data: [{
					id: '0',
					value: '虚拟'
				},{
					id: '1',
					value: '物理'
				}],
				panelHeight:'50',
			});
			$('#ethernet_type2').combobox({
				valueField: 'id',
				textField: 'value',
				data: [{
					id: '0',
					value: '虚拟'
				},{
					id: '1',
					value: '物理'
				}],
				panelHeight:'50',
			});
			$('#ethernet_type3').combobox({
				valueField: 'id',
				textField: 'value',
				data: [{
					id: '0',
					value: '虚拟'
				},{
					id: '1',
					value: '物理'
				}],
				panelHeight:'50',
			});
			$('#ethernet_type4').combobox({
				valueField: 'id',
				textField: 'value',
				data: [{
					id: '0',
					value: '虚拟'
				},{
					id: '1',
					value: '物理'
				}],
				panelHeight:'50',
			});			
			$('#ethernet_type5').combobox({
				valueField: 'id',
				textField: 'value',
				data: [{
					id: '0',
					value: '虚拟'
				},{
					id: '1',
					value: '物理'
				}],
				panelHeight:'50',
			});
			
			os_id = $('#os_id').combobox({
				url:'/devicespost/operatingsysteminfo',
				valueField:'id',
				textField:'os_info',
				editable:false,
				panelHeight:'150'      
				
			});
			
			$('input[title]').qtip({
				 show: 'focus',
				 hide: 'blur',
				 style: {
						classes: 'qtip-blue qtip-bootstrap'
					},
				 content: {
						//text: 'I really like owls!',
						title: '示例'
					},
				 position: {
					//my: 'top left',  // Position my top left...
					at: 'bottom center', // at the bottom right of...
					//target: $('input[title]') // my target
				}
			 });
					
		});
		
		//添加行
	
		   
		function addRowByID(currentRowID,name,text,validType){
		   //遍历每一行，找到指定id的行的位置i,然后在该行后添加新行
			   $.each( $('#tb:first tbody tr'), function(i, tr){
				   //$("tr").each(function(i, tr){
				   if($(this).attr('id')==currentRowID){
					   //获取当前行
					   var currentRow=$('#tb:first tbody tr:eq('+i+')');
					   //var currentRow=$('tr:eq('+i+')');
					   //要添加的行的id
					   var addRowID=currentRowID+1;
						str = "<tr id='" +addRowID + "'><th style='width: 80px;'>"+
								text+"</th><td><input name='"+ name +"' class='easyui-validatebox'"+
								" data-options=\"required:'true',validType:'" + validType + "'\" style='width: 400px;' />"+
								"<input type='button' name='button' value='删除' onclick='delRowByID(this);' style='width: 50px;'>"+
								"</td></tr>";
								  
					   //当前行之后插入一行
					   currentRow.after(str);
					   //保证easyui验证可以使用
						$.parser.parse('#'+addRowID);  //解析某个具体节点 
					   //$.parser.parse(); // 解析整个页面
					   return false; //停止循环
				   }
			   });
			 
	      }	 
	   
       
	   
   		//删除行
		function delRowByID(clickTd){
			var tr = $(clickTd).parent().parent();
			tr.remove();
		}

		function clearapp(){
			//清除应用主题相关
			$('#department_id').combobox('clear');
			$('#opersgroup_id').combobox('clear');
			$('#opersgroupproject_id').combobox('clear');
			$('#applicationtype_id').combobox('clear');
		}

		function cleareth(num){
			//清除网络配置，参数:num 清除第几个
			$('#ethernet_type' + num).combobox('clear');
			$('#ethernet_dev_name' + num).val('');
			$('#ethernet_physical_interface' + num).val('');
			$('#ethernet_ip' + num).val('');
			$('#ethernet_mac' + num).val('');
			$('#ethernet_mip' + num).val('');
			$('#switch_id' + num).combobox('clear');
			$('#switchport_id_port' + num).val('');
		}
</script>

<div style="padding: 5px;">
	<form method="post">
		<table class="tableForm" id="tb">
        	<tbody>
			<tr>
                  <th style="width:80px;">机房机柜</th>
                  <td>
                  	<input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
                        name="computerroom_id" id="computerroom_id" />                    
                    <input style="line-height:26px;border:1px solid #ccc;width:140px" class="easyui-combobox" 
                        name="rackspace_id" id="rackspace_id" />
                  </td>
			</tr>
            <tr>
				<th style="width: 80px;">设备型号</th>
				<td>
               		<input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
                        name="hardware_manufacturer" id="hardware_manufacturer" />                    
                    <input style="line-height:26px;border:1px solid #ccc;width:140px" class="easyui-combobox" 
                        name="hardware_name" id="hardware_name" />
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">序列号</th>
				<td><input name="server_sn" class="easyui-validatebox" data-options="required:'true'" style="width: 400px;" />
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">资产编号</th>
				<td><input name="server_asset_tag" class="easyui-validatebox" data-options="required:'true'" style="width: 400px;" />
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">设备U数</th>
				<td><input name="server_height" class="easyui-numberbox" data-options="required:'true',min:1,max:99" style="width: 400px;" />
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">是否包含CDROM</th>
				<td><select id="server_cdrom" class="easyui-combobox" name="server_cdrom" style="width:200px;" data-options="required:true,panelHeight:'auto'">
                        <option value="0">否</option>
                        <option value="1">是</option>
                	</select>
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">RAID卡型号</th>
				<td><input name="server_raidtype" class="easyui-validatebox" style="width: 400px;" />
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">保修状态</th>
				<td><input id="hardwarewarranty_id" class="easyui-combobox" name="hardwarewarranty_id" style="width:200px;"/>
				</td>
			</tr>
            <!--开始隐藏
            <tr id="tr_server_warranty_datetime" style='display: none'>-->
            <tr>
				<th style="width: 80px;">保修到期日</th>
				<td>
                <input class="easyui-datetimebox" id="server_warranty_datetime" name="server_warranty_datetime" 
        data-options="showSeconds:false" style="width:150px" />
        		<!--<input class="Wdate" type="text" id="server_warranty_datetime" name="server_warranty_datetime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:150px">-->
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">采购价格</th>
				<td><input name="server_price" class="easyui-numberbox" data-options="min:1,precision:2" style="width: 400px;" />
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">采购负责人</th>
				<td><input name="server_purchasing_director" class="easyui-validatebox" style="width: 400px;" />
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">采购日期</th>
				<td>
                <input class="easyui-datetimebox" name="server_buy_datetime" 
        data-options="showSeconds:false" style="width:150px" />
        		<!--<input class="Wdate" type="text" id="server_buy_datetime" name="server_buy_datetime" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:150px">-->
				</td>
			</tr>
           <tr id="tr_server_cpu">
				<th style="width: 80px;">CPU信息</th>
				<td><input id="server_cpu" name="server_cpu" class="easyui-validatebox" style="width: 400px;" data-options="validType:'cpu'" title="E5504*2000*2"/><input type="button" name="button" value="添加" onclick="addRowByID('tr_server_cpu','server_cpu','CPU信息','cpu');" style="width: 50px;"> 格式：型号*频率MHz*物理数
				</td>
			</tr>
           <tr id="tr_server_mem">
				<th style="width: 80px;">内存信息</th>
				<td><input id="server_mem" name="server_mem" class="easyui-validatebox" style="width: 400px;" data-options="validType:'mem'" title="DDR3*1333*512*1<br>DDR3*1333*2G*1<br>DDR3*1333*512M*1<br>内存大小不写单位默认M"/><input type="button" name="button" value="添加" onclick="addRowByID('tr_server_mem','server_mem','内存信息','mem');" style="width: 50px;"> 格式：型号*频率*单条容量G*数量
				</td>
			</tr>
           <tr id="tr_server_disk">
				<th style="width: 80px;">硬盘信息</th>
				<td><input id="server_disk" name="server_disk" class="easyui-validatebox" style="width: 400px;" data-options="validType:'disk'" title="SAS*15000*100*1<br>SAS*15000*100G*1<br>SAS*7500*100T*1<br>SAS*7500*100P*1<br>硬盘大小不写单位默认G"/><input type="button" name="button" value="添加" onclick="addRowByID('tr_server_disk','server_disk','硬盘信息','disk');" style="width: 50px;"> 格式：型号*转速*单盘容量G*数量
				</td>
			</tr>
           <tr id="tr_server_power">
				<th style="width: 80px;">电源信息</th>
				<td><input id="server_power" name="server_power" class="easyui-validatebox" style="width: 400px;" data-options="validType:'power'"/><input type="button" name="button" value="添加" onclick="addRowByID('tr_server_power','server_power','电源信息','power');" style="width: 50px;"> 格式：型号*功率*数量
				</td>
			</tr>
           <tr id="tr_server_ethernet">
				<th style="width: 80px;">网卡信息</th>
				<td><input id="server_ethernet" name="server_ethernet" class="easyui-validatebox" style="width: 400px;" data-options="validType:'ethernet'" /><input type="button" name="button" value="添加" onclick="addRowByID('tr_server_ethernet','server_ethernet','网卡信息','ethernet');" style="width: 50px;"> 格式：型号*数量
				</td>
			</tr>
			<tr>
				<th style="width:80px;">操作系统</th>
				<td>
					<input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
					name="os_id" id="os_id" /><a href="javascript:void(0);" onclick="$('#os_id').combobox('clear');"><span class="ext-icon-cross" title="清空" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span></a>
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">主机名</th>
				<td><input name="system_hostname" class="easyui-validatebox" style="width: 400px;" />
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">RAID配置</th>
				<td><input id="system_raid" name="system_raid" class="easyui-validatebox" style="width: 400px;" />
				</td>
			</tr>
			<tr>
				<th style="width: 80px;">系统分区</th>
				<td colspan="3"><textarea name="system_partition" style="height: 80px;width: 97%;"></textarea>
				</td>
			</tr> 
			<tr>
                  <th style="width:80px;">状态信息</th>
                  <td>
                  <input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
                        name="hardwarestatus_id" id="hardwarestatus_id" />
                  </td>
			</tr>
            <tr>
				<th style="width: 80px;">应用主题</th>
				<td>
					<input style="line-height:26px;border:1px solid #ccc;width:130px" class="easyui-combobox" 
                        data-options="required:false" name="department_id" id="department_id" />                    
                    <input style="line-height:26px;border:1px solid #ccc;width:120px" class="easyui-combobox" 
                        data-options="required:false" name="opersgroup_id" id="opersgroup_id" />
                    <input style="line-height:26px;border:1px solid #ccc;width:120px" class="easyui-combobox" 
                        data-options="required:false" name="opersgroupproject_id" id="opersgroupproject_id" />
                	<input style="line-height:26px;border:1px solid #ccc;width:150px" class="easyui-combobox" 
                		id="applicationtype_id" name="applicationtype_id"/>
                	<a href="javascript:void(0);" onclick="clearapp();"><span class="ext-icon-cross" title="清空" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span></a>
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">网卡接入配置</th>
				<td>
                	<table>
                	  <thead><tr><td>类型</td><td>设备名</td><td>物理接口</td><td>ip地址</td><td>mac地址</td><td>映射IP</td><td>交换机</td><td>交换机端口</td></tr></thead>
					<tbody>
    				<tr>
                    	<td><input id="ethernet_type1" class="easyui-combobox" name="ethernet_type1" style="width:50px;"/></td>
                        <td><input name="ethernet_dev_name1" id="ethernet_dev_name1" class="easyui-validatebox" style="width: 50px;" /></td>
                        <td><input name="ethernet_physical_interface1" id="ethernet_physical_interface1" class="easyui-numberbox" style="width: 50px;" /></td>
                     	<td><input name="ethernet_ip1" id="ethernet_ip1" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input name="ethernet_mac1" id="ethernet_mac1" class="easyui-validatebox" style="width:110px;"/></td>
                        <td><input name="ethernet_mip1" id="ethernet_mip1" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input id="switch_id1" class="easyui-combobox" name="switch_id1" style="width:120px;"/></td>
                        <td><input name="switchport_id_port1" id="switchport_id_port1" class="easyui-numberbox" style="width:50px;"/><a href="javascript:void(0);" onclick="cleareth('1');"><span class="ext-icon-cross" title="清空" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span></a></td>
                        
                     </tr>
                     <tr>
                    	<td><input id="ethernet_type2" class="easyui-combobox" name="ethernet_type2" style="width:50px;"/></td>
                        <td><input name="ethernet_dev_name2" id="ethernet_dev_name2" class="easyui-validatebox" style="width: 50px;" /></td>
                        <td><input name="ethernet_physical_interface2" id="ethernet_physical_interface2" class="easyui-numberbox" style="width: 50px;" /></td>
                     	<td><input name="ethernet_ip2" id="ethernet_ip2" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input name="ethernet_mac2" id="ethernet_mac2" class="easyui-validatebox" style="width:110px;"/></td>
                        <td><input name="ethernet_mip2" id="ethernet_mip2" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input id="switch_id2" class="easyui-combobox" name="switch_id2" style="width:120px;"/></td>
                        <td><input name="switchport_id_port2" id="switchport_id_port2" class="easyui-numberbox" style="width:50px;"/><a href="javascript:void(0);" onclick="cleareth('2');"><span class="ext-icon-cross" title="清空" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span></a></td>
                        
                     </tr>
                     <tr>
                    	<td><input id="ethernet_type3" class="easyui-combobox" name="ethernet_type3" style="width:50px;"/></td>
                        <td><input name="ethernet_dev_name3" id="ethernet_dev_name3" class="easyui-validatebox" style="width: 50px;" /></td>
                        <td><input name="ethernet_physical_interface3" id="ethernet_physical_interface3" class="easyui-numberbox" style="width: 50px;" /></td>
                     	<td><input name="ethernet_ip3" id="ethernet_ip3" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input name="ethernet_mac3" id="ethernet_mac3" class="easyui-validatebox" style="width:110px;"/></td>
                        <td><input name="ethernet_mip3" id="ethernet_mip3" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input id="switch_id3" class="easyui-combobox" name="switch_id3" style="width:120px;"/></td>
                        <td><input name="switchport_id_port3" id="switchport_id_port3" class="easyui-numberbox" style="width:50px;"/><a href="javascript:void(0);" onclick="cleareth('3');"><span class="ext-icon-cross" title="清空" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span></a></td>
                        
                     </tr>
                     <tr>
                    	<td><input id="ethernet_type4" class="easyui-combobox" name="ethernet_type4" style="width:50px;"/></td>
                        <td><input name="ethernet_dev_name4" id="ethernet_dev_name4" class="easyui-validatebox" style="width: 50px;" /></td>
                        <td><input name="ethernet_physical_interface4" id="ethernet_physical_interface4" class="easyui-numberbox" style="width: 50px;" /></td>
                     	<td><input name="ethernet_ip4" id="ethernet_ip4" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input name="ethernet_mac4" id="ethernet_mac4" class="easyui-validatebox" style="width:110px;"/></td>
                        <td><input name="ethernet_mip4" id="ethernet_mip4" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input id="switch_id4" class="easyui-combobox" name="switch_id4" style="width:120px;"/></td>
                        <td><input name="switchport_id_port4" id="switchport_id_port4" class="easyui-numberbox" style="width:50px;"/><a href="javascript:void(0);" onclick="cleareth('4');"><span class="ext-icon-cross" title="清空" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span></a></td>
                        
                     </tr>
                     <tr>
                    	<td><input id="ethernet_type5" class="easyui-combobox" name="ethernet_type5" style="width:50px;"/></td>
                        <td><input name="ethernet_dev_name5" id="ethernet_dev_name5" class="easyui-validatebox" style="width: 50px;" /></td>
                        <td><input name="ethernet_physical_interface5" id="ethernet_physical_interface5" class="easyui-numberbox" style="width: 50px;" /></td>
                     	<td><input name="ethernet_ip5" id="ethernet_ip5" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input name="ethernet_mac5" id="ethernet_mac5" class="easyui-validatebox" style="width:110px;"/></td>
                        <td><input name="ethernet_mip5" id="ethernet_mip5" class="easyui-validatebox" data-options="validType:'ip'" style="width:110px;"/></td>
                        <td><input id="switch_id5" class="easyui-combobox" name="switch_id5" style="width:120px;"/></td>
                        <td><input name="switchport_id_port5" id="switchport_id_port5" class="easyui-numberbox" style="width:50px;"/><a href="javascript:void(0);" onclick="cleareth('5');"><span class="ext-icon-cross" title="清空" style="display:inline-block;vertical-align:middle;width:16px;height:16px;"></span></a></td>
                        
                     </tr>
						</tbody>
                     </table>
				</td>
			</tr>
            <tr>
				<th style="width: 80px;">备注</th>
				<td colspan="3"><textarea name="comment" style="height: 50px;width: 97%;"></textarea>
				</td>
			</tr>      
            </tbody>    
		</table>
	</form>
</div>